﻿using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsFormsApp2
{
    public static class JsonHelper
    {
        /// <summary>
        /// // 从一个Json串生成JObject对象信息
        /// </summary>
        /// <param name="jsonString"></param>
        /// <param name="obj"></param>
        /// <returns></returns>
        public static JObject JsonToObject(string jsonString)
        {

            JObject jo = new JObject();
            jo = (JObject)Newtonsoft.Json.JsonConvert.DeserializeObject(jsonString);
            return jo;
        }
    }
}
